﻿using Pay.TO;

namespace Pay.Data {
    /// <summary>
    /// 分佣
    /// </summary>
    public class TokenBill {
        public TokenBill() {
        }
        public long Id { get; set; }
        /// <summary>
        /// 邀请人
        /// </summary>
        public long MerchantId { get; set; }
        /// <summary>
        /// 申请人
        /// </summary>
        public long ApplyMerchantId { get; set; }
        /// <summary>
        /// 市分公司
        /// </summary>
        public long CityCompanyMerchantId { get; set; }
        /// <summary>
        /// 总分佣金额
        /// </summary>
        public decimal TotalCommission { get; set; }
        /// <summary>
        /// 分佣类型
        /// </summary>
        public UserType UserType { get; set; }
        /// <summary>
        /// 分佣状态
        /// </summary>
        public EMaidStatus EMaidStatus { get; set; }
        /// <summary>
        /// 邀请人父级路径
        /// </summary>
        public string InviteMerchantPath { get; set; }
        /// <summary>
        /// 分润
        /// </summary>
        public string Profit { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        public long CreateTime { get; set; }
        /// <summary>
        /// 发起时间
        /// </summary>
        public long? LaunchTime { get; set; }
        /// <summary>
        /// 邀请人
        /// </summary>
        public virtual Merchant Merchant { get; set; }
        /// <summary>
        /// 申请人
        /// </summary>
        public virtual Merchant ApplyMerchant { get; set; }
        /// <summary>
        /// 市分公司
        /// </summary>
        public virtual Merchant CityCompanyMerchant { get; set; }
    }
}
